package com.example.rbacmanage.controller.app;

import com.example.rbacmanage.common.Result;
import com.example.rbacmanage.entity.app.Tools;
import com.example.rbacmanage.service.app.ToolsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/app/tools")
@RestController
public class ToolsAppController {
    @Autowired
    private ToolsService toolsService;

    @GetMapping("/list")
    public Result list(Tools tools){
        return Result.success(toolsService.getAll(tools));
    }

}
